| Conditions | 2 |
| Paths | 1 |
| Total Lines | 24 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | (function($){ |
||
| 5 | success : function( result ){ |
||
| 6 | if( !result ) throw "Error loading initial urls and settings"; |
||
| 7 | |||
| 8 | $('#init-form').fadeIn(); |
||
| 9 | $('#init-crawler-btn').click(function(){ |
||
| 10 | crawler.robots_url = $('#robots-url').val(); |
||
| 11 | crawler.sitemap_url = $('#sitemap-url').val(); |
||
| 12 | crawler.useragent = $('#user-agent').val(); |
||
| 13 | |||
| 14 | // Que initial urls |
||
| 15 | for( var j in result['urls'] ) crawler.que_url(result['urls'][j]); |
||
| 16 | |||
| 17 | crawler.init(result['settings']); |
||
| 18 | |||
| 19 | $('#init-popup').hide(); |
||
| 20 | $('#results_container').fadeIn(); |
||
| 21 | $('.legend-btn').fadeIn(); |
||
| 22 | |||
| 23 | $('.legend-btn, #legend').click(function(){ |
||
| 24 | $('#legend-btn').toggle(); |
||
| 25 | $('#legend').toggle(); |
||
| 26 | }) |
||
| 27 | }); |
||
| 28 | } |
||
| 29 | }); |
||
| 31 |